package com.sm.dao;

import java.util.List;

import com.sm.model.GoodsRecord;
import org.apache.ibatis.annotations.Param;

public interface GoodsRecordMapper {
    int deleteByPrimaryKey(Integer goodsRecordId);

    int insert(GoodsRecord record);

    int insertSelective(GoodsRecord record);

    GoodsRecord selectByPrimaryKey(Integer goodsRecordId);

    int updateByPrimaryKeySelective(GoodsRecord record);

    int updateByPrimaryKey(GoodsRecord record);
    
    
    /**
     *	根据用户的id搜索用户的商品搜索记录
     * @param userId
     * @return
     */
    List<GoodsRecord> selectGoodsRecord(@Param("userId")Integer userId);
    
    /**
	 *	通过用户id清空商品的搜索记录
	 * @param userId	用户id
	 * @return
	 */
    int cleanGoodsRecord(@Param("userId")Integer userId);
    
    
    
    
    
    
    
    
    
    
}